package com.example.red_tea_house.entity;

import org.litepal.crud.LitePalSupport;

public class StoryBean extends LitePalSupport {
    private  String Title;
    private  String Content;
    private  String Time;
    //自定义标签
    private  String Custom_tag;
    private  int Tag;
    private int State;
    //state代表文章是草稿还是发布
    private String author;

    public StoryBean(){}

    public StoryBean(String title, String content, String time, String custom_tag, int tag,int state,String author){
        this.Title = title;
        this.Content = content;
        this.Time = time;
        this.Custom_tag =custom_tag;
        this.Tag = tag;
        this.State=state;
        this.author=author;
    }


    public String getTitle() {
        return Title;
    }

    public String getTime() {
        return Time;
    }

    public int getTag() {
        return Tag;
    }

    public String getContent() {
        return Content;
    }

    public String getCustom_tag() {
        return Custom_tag;
    }

    public int getState(){return State;}

    public String getAuthor(){
        return author;
    }


    public void setTitle(String title) {
        this.Title = title;
    }

    public void setTime(String time) {
        this.Time = time;
    }

    public void setTag(int tag) {
        this.Tag = tag;
    }

    public void setContent(String content) {
        this.Content = content;
    }

    public void setCustom_tag(String custom_tag) {
        this.Custom_tag = custom_tag;
    }

    public void setState(int state){this.State =state;}

    public void setAuthor(String author){this.author=author;}

    @Override
    public String toString() {
        return Content;
    }
}
